package com.arron.java基础.流.testio3;

import java.io.*;

public class TestIO3 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis =new BufferedInputStream(new FileInputStream("E:\\架构师进阶之战\\C# 5.0 in a Nutshell 5th.pdf"));
        BufferedOutputStream bos =new BufferedOutputStream(new FileOutputStream("f:/5th.pp"));
        byte[] buffer =new byte[1024];
        int len=0;
        len =bis.read(buffer);
        while (-1!=len)
        {
            bos.write(buffer,0,len);
            len =bis.read(buffer);
        }
        bos.flush();
        bos.close();
        bis.close();
    }
}
